// 自动生成模板UserIndex
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type UserIndex struct {
      global.GVA_MODEL
      Address  string `json:"address" form:"address" gorm:"column:address;comment:地址;type:varchar(255);"`
      Cname  string `json:"cname" form:"cname" gorm:"column:cname;comment:联系人;type:varchar(255);"`
      Content  string `json:"content" form:"content" gorm:"column:content;comment:企业详情说明;type:text;"`
      Cphone  string `json:"cphone" form:"cphone" gorm:"column:cphone;comment:业务联系电话;type:varchar(255);"`
      Intro  string `json:"intro" form:"intro" gorm:"column:intro;comment:主营业务介绍;type:text;"`
      Logo  string `json:"logo" form:"logo" gorm:"column:logo;comment:logo;type:varchar(255);"`
      Status  int `json:"status" form:"status" gorm:"column:status;comment:审核状态;type:int;size:10;"`
      TopPic  string `json:"topPic" form:"topPic" gorm:"column:top_pic;comment:头图;type:varchar(255);"`
      Web  string `json:"web" form:"web" gorm:"column:web;comment:网址;type:varchar(255);"`
      UserId  int `json:"userId" form:"userId" gorm:"column:user_id;comment:用户ID"`
      Users Users `json:"users" gorm:"foreignKey:ID;references:UserId"`
      UserIndexIntro []UserIndexIntro `json:"user_index_intro"  gorm:"foreignKey:IndexId;references:ID"`
      UserIndexTop   []UserIndexTop   `json:"user_index_top" gorm:"foreignKey:IndexId;references:ID"`
}


func (UserIndex) TableName() string {
  return "user_index"
}

